package com.kaili.pojo.dto.sign;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * Created by renzhikun on 18-11-29.
 */
@Data
public class SignQueryDTO extends com.kaili.common.PageRequest {

    @Pattern(regexp = "^[A-Za-z0-9]{0,30}$",message = "运单应为[A-Za-z0-9]组成的1-30位字符")
    @ApiModelProperty("运单")
    private String ewbNo;

    @Pattern(regexp = "^[A-Za-z0-9]{0,20}$",message = "收发货人应为[A-Za-z0-9]组成的1-20位字符")
    @ApiModelProperty("收发货人")
    private String manId;

    @NotNull(message = "提(106)或者派送标记不能为空")
    @ApiModelProperty("区分自提(106)或者派送(105)")
    private String pickMode;

    @NotNull(message = "签收状态不能为空")
    @ApiModelProperty("签收状态")
    private String sign;

    @ApiModelProperty("网点")
    private String siteId;

}
